package com.ruoyi.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单项对象 ver_point
 * 
 * @author ruoyi
 * @date 2025-08-21
 */
public class VerPoint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分记录ID（主键) */
    private Long id;

    /** 用户ID（外键，关联user表) */
    @Excel(name = "用户ID", readConverterExp = "用户ID（外键，关联user表)")
    private Long userId;

    /** 关联订单号（外键，可为null，如积分兑换无订单) */
    @Excel(name = "关联订单号", readConverterExp = "关联订单号（外键，可为null，如积分兑换无订单)")
    private Long orderId;

    /** 积分数量（正数为增加，负数为减少） */
    @Excel(name = "积分数量", readConverterExp = "正=数为增加，负数为减少")
    private Long pointNum;

    /** 积分变动原因（如 “订单支付”“积分兑换”） */
    @Excel(name = "积分变动原因", readConverterExp = "如=,“=订单支付”“积分兑换”")
    private String reason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setPointNum(Long pointNum) 
    {
        this.pointNum = pointNum;
    }

    public Long getPointNum() 
    {
        return pointNum;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("pointNum", getPointNum())
            .append("reason", getReason())
            .append("createTime", getCreateTime())
            .toString();
    }
}
